luci-base: form.js depends(): make value optional
authorSergey Ponomarev <[email protected]>
Sat, 4 Oct 2025 12:38:24 +0000 (15:38 +0300)
committerPaul Donald <[email protected]>
Tue, 7 Oct 2025 22:39:59 +0000 (00:39 +0200)
Signed-off-by: Sergey Ponomarev <[email protected]>
modules/luci-base/htdocs/luci-static/resources/form.js

index 9a8523c62fe2ae1ed492dfb4d2cd459ee7edafc5..5cd8fa9acb7a6c6d05e635f8ffb72fcb33be11e5 100644 (file)
@@ -1631,7 +1631,7 @@ const CBIAbstractValue = CBIAbstractElement.extend(/** @lends LuCI.form.Abstract
         * The name of the option to depend on or an object describing multiple
         * dependencies which must be satisfied (a logical "and" expression).
         *
-        * @param {string|RegExp} value
+        * @param {string|RegExp} [value]
         * When invoked with a plain option name as first argument, this parameter
         * specifies the expected value. In case an object is passed as first
         * argument, this parameter is ignored.